package com.wardrobe.soa.backend.goods_classify;

import com.wardrobe.dao.goods_classify.GoodsClassifyDao;
import com.wardrobe.domain.common.BackEndFromBean;
import com.wardrobe.domain.goods_classify.GoodsClassifyBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/11/16.
 */
@Service
public class BackGoodsClassifyService {
    @Autowired
    private GoodsClassifyDao goodsClassifyDao;

    public List<GoodsClassifyBean> getGoodsClassifyList(int status){
        return goodsClassifyDao.selectGoodsClassify(status);
    }

    public int saveGoodsClassify(GoodsClassifyBean goodsClassifyBean){
        return goodsClassifyDao.insertGoodsClassify(goodsClassifyBean);
    }

    public int modifyGoodsClassify(BackEndFromBean fromBean){
        return goodsClassifyDao.updateGoodsClassify(fromBean);
    }

    public List<Map<String,Object>> classifyList(int status){
        return goodsClassifyDao.classifyList(status);
    }
}
